<div class="navbar navbar-default" id="navbar">
    <script type="text/javascript">
        try{ace.settings.check('navbar' , 'fixed')}catch(e){}
    </script>

    <div class="navbar-container" id="navbar-container">
        <div class="navbar-header pull-left">
            <a href="#" class="navbar-brand">
                <small>
                    <i class="icon-leaf"></i>
                    {$apps.title}
                </small>
            </a>
        </div>
        <div class="navbar-header pull-right" role="navigation">
            <ul class="nav ace-nav">
                <eq name="Think.session.apps_mid" value="1">
                <li class="red">
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        版本更新<i class="icon-caret-down"></i>
                    </a>
                    <ul class="pull-right dropdown-menu ">
                        <li class="dropdown-header">
                        当前版本号 {$Think.APP_VER}
                        </li>

                        <li><a target="_blank" href="http://yunduweixin.duapp.com/index.php?g=Mobile&m=AppsUpdate&a=view&ver={$Think.APP_VER}">检查更新</a></li>
                    </ul>
                </li>

                <li class="green">
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        清理缓存<i class="icon-caret-down"></i>
                    </a>
                    <ul class="pull-right dropdown-menu ">
                        <li><a href="{:U('Member/Index/clearCache?dir=all')}">所有缓存</a></li>
                        <li class="divider"></li>
                        <li><a href="{:U('Member/Index/clearCache?dir=tpl')}">模板文件</a></li>
                        <li class="divider"></li>
                        <li><a href="{:U('Member/Index/clearCache?dir=data')}">数据文件</a></li>
                    </ul>
                </li>
                </eq>
                <li class="light-blue">
                    <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                        <img class="nav-user-photo" src="__PUBLIC__/avatars/avatar2.png" />
                        <span class="user-info">
                            <small>欢迎登录,</small>
                            {$member.account}
                        </span>

                        <i class="icon-caret-down"></i>
                    </a>

                    <ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                        <li>
                            <a href="{:U('Member/Profile/changepw')}">
                                <i class="icon-cog"></i>
                                修改密码
                            </a>
                        </li>

                        <li>
                            <a href="{:U('Member/Mpaccount/index')}">
                                <i class="icon-user"></i>
                                公众帐号
                            </a>
                        </li>

                        <li class="divider"></li>

                        <li>
                            <a href="{:U('Member/Public/logout')}">
                                <i class="icon-off"></i>
                                登出
                            </a>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</div>